<html>
    <head>
        <title>{{ "网格(%d x %d)" % (n,m) }}</title>
        <style>
            table {
                border-collapse: collapse;
            }
            table,
            th,
            td {
                border: 1px solid black;
            }
        </style>
    </head>
    <body>
        <table>
            <tbody>
                {% for i in range(n) %}
                <tr>
                     {% for j in range(m) %} 
                        <td  {% if i == j %} style="color: blue" {%endif %}>
                           {{ '(%d, %d)' % (i, j) }}
                        </td>
                    {% endfor %}
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </body>
</html>
